package cn.com.darly.videoandroidpm.common.easing.bounce;
import cn.com.darly.videoandroidpm.common.easing.BaseEasingMethod;

/**
 * @author Darly/张宇辉/2018/3/14 14:10
 * @version 1.0/cn.com.darly.videoandroidpm.common.easing.bounce
 */

public class BounceEaseOut extends BaseEasingMethod {
    public BounceEaseOut(float duration) {
        super(duration);
    }

    public Float calculate(float t, float b, float c, float d) {
        return (t /= d) < 0.36363637F? Float.valueOf(c * 7.5625F * t * t + b):(t < 0.72727275F? Float.valueOf(c * (7.5625F * (t -= 0.54545456F) * t + 0.75F) + b):((double)t < 0.9090909090909091D? Float.valueOf(c * (7.5625F * (t -= 0.8181818F) * t + 0.9375F) + b): Float.valueOf(c * (7.5625F * (t -= 0.95454544F) * t + 0.984375F) + b)));
    }
}
